import baseRequest from './request'

// 生成订单支付参数
export function PrePay({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Payment/PrePay',
        method: 'GET',
        needLogin: true,
        data,
        hasLoading: false
    })
}

// 交易记录
export function PageList({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Payment/PageList',
        method: 'POST',
        needLogin: true,
        data,
        hasLoading: false
    })
}

export function Detail({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Payment/Detail',
        method: 'GET',
        needLogin: true,
        data,
        hasLoading: false
    })
}